package cool.leeson.library.service.library;

import cool.leeson.library.entity.library.simple.RulesSimple;
import org.springframework.stereotype.Service;

@Service
public class RulesService {

    // 获取规则
    public String getRules() {
        return RulesSimple.getRules();  // 调用 Rules 类的 getRules 方法获取规则
    }

    // 更新规则
    public void updateRules(String newRules) {
        RulesSimple.setRules(newRules);  // 调用 Rules 类的 setRules 方法更新规则
    }
}
